package com.example.springbootdemo.Controller;

import com.example.springbootdemo.annotation.Auditable;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/users")
public class UserController {

    @GetMapping("/detail")
    @Auditable("查询用户")
    public String getuserdetail(@RequestParam Long id){
        return "查询成功"+id;
    }

    @Auditable("更新用户")
    @PostMapping("/update")
    public String update(@RequestParam Long id){
        return "更新成功"+id;
    }
}
